import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { ValidationPipe } from '@nestjs/common';
async function bootstrap() {
  const app = await NestFactory.create(AppModule);

  app.useGlobalPipes(new ValidationPipe({transform: true}));

  app.enableCors();
  await app.listen(3005);
}
bootstrap();

/**
 * 8.11日，暂时修改把端口修改成3005，并开启跨域
 *  await app.listen(3000);
 */